##
## OPTIONS
##

# Rule prefix 
rule_prefix=dsg

# Fold config
use_old_fold_config=false

if $use_old_fold_config; then
    fold_config_argument="--fold-config"
else
    fold_config_argument="--new-fold-config"
fi
num_folds=10

# Output format
ps_tree_format=ssf

##
## FILES
##

# Base directory of the conversion code (e.g. "foo/syntric") 
conversion_dir=../..

# Location of the configuration file
config_file=config.xml

# Location of the fold configuration file
fold_config_file=fold-config.xml

# Location of the input trees
input_file=processed.xml

# Location of the output trees
output_file=output.xml

##
## WRAPPER
##
dist=$conversion_dir/bin
jar_dir=$conversion_dir/jars
pkg=edu.washington.ling.syntric.pipeline

java -cp $dist:$jar_dir/* $pkg.Train $input_file $rule_prefix --config config.xml $fold_config_argument $fold_config_file --num-folds $num_folds
java -cp $dist:$jar_dir/* $pkg.Convert $input_file $output_file --rule-prefix $rule_prefix --ps-tree-format $ps_tree_format --config config.xml --fold-config $fold_config_file